<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>垃圾分类指南</title>
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.2.3/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.bootcdn.net/ajax/libs/font-awesome/5.15.4/css/all.min.css" rel="stylesheet">
    <style>
        .category-card {
            border-radius: 10px;
            margin-bottom: 20px;
            transition: transform 0.2s;
        }
        .category-card:hover {
            transform: translateY(-5px);
        }
        .category-icon {
            font-size: 2.5rem;
            margin-bottom: 15px;
        }
        .recyclable { color: #0d6efd; }
        .hazardous { color: #dc3545; }
        .food { color: #198754; }
        .other { color: #6c757d; }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg navbar-dark bg-primary">
        <div class="container">
            <a class="navbar-brand" href="/resident">
                <i class="fas fa-recycle me-2"></i>废物回收管理系统
            </a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav me-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="/resident">首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="/orders/create">预约回收</a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>

    <div class="container my-5">
        <h2 class="text-center mb-4">垃圾分类指南</h2>
        <div class="row">
            <!-- 可回收物 -->
            <div class="col-md-3">
                <div class="card category-card">
                    <div class="card-body text-center">
                        <i class="fas fa-recycle category-icon recyclable"></i>
                        <h5 class="card-title">可回收物</h5>
                        <p class="card-text">
                            废纸、塑料、玻璃、金属、织物等
                        </p>
                        <ul class="list-unstyled text-start small">
                            <li><i class="fas fa-check text-success me-2"></i>报纸、杂志、纸箱</li>
                            <li><i class="fas fa-check text-success me-2"></i>饮料瓶、塑料包装</li>
                            <li><i class="fas fa-check text-success me-2"></i>玻璃瓶、金属罐</li>
                            <li><i class="fas fa-check text-success me-2"></i>旧衣物、布料</li>
                        </ul>
                    </div>
                </div>
            </div>
            
            <!-- 有害垃圾 -->
            <div class="col-md-3">
                <div class="card category-card">
                    <div class="card-body text-center">
                        <i class="fas fa-skull-crossbones category-icon hazardous"></i>
                        <h5 class="card-title">有害垃圾</h5>
                        <p class="card-text">
                            废电池、灯管、药品等
                        </p>
                        <ul class="list-unstyled text-start small">
                            <li><i class="fas fa-times text-danger me-2"></i>废电池、充电电池</li>
                            <li><i class="fas fa-times text-danger me-2"></i>荧光灯管、节能灯</li>
                            <li><i class="fas fa-times text-danger me-2"></i>过期药品、药物</li>
                            <li><i class="fas fa-times text-danger me-2"></i>废油漆、化学品</li>
                        </ul>
                    </div>
                </div>
            </div>
            
            <!-- 厨余垃圾 -->
            <div class="col-md-3">
                <div class="card category-card">
                    <div class="card-body text-center">
                        <i class="fas fa-apple-alt category-icon food"></i>
                        <h5 class="card-title">厨余垃圾</h5>
                        <p class="card-text">
                            剩菜剩饭、果皮等
                        </p>
                        <ul class="list-unstyled text-start small">
                            <li><i class="fas fa-leaf text-success me-2"></i>剩饭剩菜</li>
                            <li><i class="fas fa-leaf text-success me-2"></i>水果果皮、果核</li>
                            <li><i class="fas fa-leaf text-success me-2"></i>蔬菜废弃物</li>
                            <li><i class="fas fa-leaf text-success me-2"></i>茶叶渣、咖啡渣</li>
                        </ul>
                    </div>
                </div>
            </div>
            
            <!-- 其他垃圾 -->
            <div class="col-md-3">
                <div class="card category-card">
                    <div class="card-body text-center">
                        <i class="fas fa-trash category-icon other"></i>
                        <h5 class="card-title">其他垃圾</h5>
                        <p class="card-text">
                            难以回收的生活垃圾
                        </p>
                        <ul class="list-unstyled text-start small">
                            <li><i class="fas fa-minus text-secondary me-2"></i>卫生纸</li>
                            <li><i class="fas fa-minus text-secondary me-2"></i>尿不湿</li>
                            <li><i class="fas fa-minus text-secondary me-2"></i>烟头</li>
                            <li><i class="fas fa-minus text-secondary me-2"></i>陶瓷碎片</li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
        
        <div class="mt-5">
            <h4 class="mb-3">分类小贴士</h4>
            <div class="alert alert-info">
                <ul class="mb-0">
                    <li>可回收物应保持清洁干燥，避免污染</li>
                    <li>有害垃圾要单独投放，避免混合</li>
                    <li>厨余垃圾应沥干水分后再投放</li>
                    <li>如有疑问，可以联系我们的客服咨询</li>
                </ul>
            </div>
        </div>
    </div>

    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.2.3/js/bootstrap.bundle.min.js"></script>
</body>
</html> 